/*
 * @Author: fishroom
 * @Date: 2021-08-22 19:31:48
 * @LastEditTime: 2021-09-07 15:19:40
 * @FilePath: \backstage\src\store\index.js
 */
import Vue from "vue";
import Vuex from "vuex";
import mutations from "./mutations";
import actions from "./actions";
import getters from "./getters";
import menusModule from "./module/menusModule";
Vue.use(Vuex);

const state = {
  detailModelList: [
    {
      title: "酒店",
      name: "hotel",
      intro: "酒店全部资产",
      img:
        "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fpic1.win4000.com%2Fwallpaper%2Fa%2F55ffb83bee683.jpg&refer=http%3A%2F%2Fpic1.win4000.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1632494166&t=87ca42908aface56f14052cfd1e0df47"
    },
    {
      title: "靶场",
      name: "range",
      intro: "靶场全部资产",
      img:
        "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fi0.hdslb.com%2Fbfs%2Farticle%2F32a11bed2676a842e49b8bbebc938ead9e63b224.jpg&refer=http%3A%2F%2Fi0.hdslb.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1632494166&t=df6b6e1c95b58c4876f2ab4b8dd6e421"
    },
    {
      title: "养殖场",
      name: "farm",
      intro: "养殖场全部资产",
      img:
        "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg30.51tietu.net%2Fpic%2F2016-082520%2F20160825200136sk3geqe4cyn57206.jpg&refer=http%3A%2F%2Fimg30.51tietu.net&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1632494166&t=3cefdf49c57a5fb329197b4e387b245b"
    },
    {
      title: "营房",
      name: "barracks",
      intro: "营房全部资产",
      img:
        "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg30.51tietu.net%2Fpic%2F2016-082706%2F2016082706130353wvljwfq4x78589.jpg&refer=http%3A%2F%2Fimg30.51tietu.net&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1632494166&t=8d77615895235837293f4a4e95963240"
    },
    {
      title: "楼栋",
      name: "building",
      intro: "楼栋全部资产",
      img:
        "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fwww.v3wall.com%2Fwallpaper%2F1366_768%2F1004%2F1366_768_20100430022202223955.jpg&refer=http%3A%2F%2Fwww.v3wall.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1632494166&t=7b8e089c1b7693d805eb0b487ce2644b"
    }
  ],
  list: [],
  //令牌
  token: "",
  // 资产页下拉框数组
  selectList: [],
  // 地图页下拉框数组
  mapSelectList: [],
  // 资产页分页数组
  PropertyItemList: [],
  // 资产页分页数组长度
  PropertyLength: 0,
  // 详情数组
  DetailItemList: [],

  // 地图页下拉框数组
  mapSelectList: [],
  MapSearchList: [
    {
      latitude: "103.684298",
      longitude: "30.760913",
      typeName: "养殖场",
      intor: "西北一队养殖场",
      environmentName: "绿洲",
      managerName: "陈博倩",
      managerTel: "18532746628",
      show: true
    },
    {
      latitude: "103.818253",
      longitude: "30.673486",
      typeName: "养殖场",
      intor: "西北一队养殖场",
      environmentName: "绿洲",
      managerName: "陈博倩",
      managerTel: "18532746628"
    },
    {
      latitude: "104.039021",
      longitude: "30.710752",
      typeName: "养殖场",
      intor: "西北一队养殖场",
      environmentName: "绿洲",
      managerName: "陈博倩",
      managerTel: "18532746628"
    },
    {
      latitude: "103.968881",
      longitude: "30.499388",
      typeName: "养殖场",
      intor: "西北一队养殖场",
      environmentName: "绿洲",
      managerName: "陈博倩",
      managerTel: "18532746628"
    },
    {
      latitude: "104.463308",
      longitude: "30.756444",
      typeName: "养殖场",
      intor: "西北一队养殖场",
      environmentName: "绿洲",
      managerName: "陈博倩",
      managerTel: "18532746628"
    },
    {
      latitude: "104.367872",
      longitude: "30.450086",
      typeName: "养殖场",
      intor: "西北一队养殖场",
      environmentName: "绿洲",
      managerName: "陈博倩",
      managerTel: "18532746628"
    },
    {
      latitude: "104.478256",
      longitude: "30.382815",
      typeName: "养殖场",
      intor: "西北一队养殖场",
      environmentName: "绿洲",
      managerName: "陈博倩",
      managerTel: "18532746628"
    },
    {
      latitude: "104.062017",
      longitude: "30.697338",
      typeName: "养殖场",
      intor: "西北一队养殖场",
      environmentName: "绿洲",
      managerName: "陈博倩",
      managerTel: "18532746628"
    },
    {
      latitude: "101.983123",
      longitude: "31.142462",
      typeName: "养殖场",
      intor: "西北一队养殖场",
      environmentName: "绿洲",
      managerName: "陈博倩",
      managerTel: "18532746628"
    },
    {
      latitude: "101.969325",
      longitude: "29.92614",
      typeName: "养殖场",
      intor: "西北一队养殖场",
      environmentName: "绿洲",
      managerName: "陈博倩",
      managerTel: "18532746628"
    },
    {
      latitude: "105.570596",
      longitude: "30.389794",
      typeName: "养殖场",
      intor: "西北一队养殖场",
      environmentName: "绿洲",
      managerName: "陈博倩",
      managerTel: "18532746628"
    },
    {
      latitude: "105.570596",
      longitude: "30.389794",
      typeName: "养殖场",
      intor: "西北一队养殖场",
      environmentName: "绿洲",
      managerName: "陈博倩",
      managerTel: "18532746628"
    },
    {
      latitude: "104.540347",
      longitude: "30.69535",
      typeName: "养殖场",
      intor: "西北一队养殖场",
      environmentName: "绿洲",
      managerName: "陈博倩",
      managerTel: "18532746628"
    },
    {
      latitude: "108.684298",
      longitude: "30.760913",
      typeName: "养殖场",
      intor: "西北一队养殖场",
      environmentName: "绿洲",
      managerName: "陈博倩",
      managerTel: "18532746628"
    },
    {
      latitude: "103.721598",
      longitude: "31.660913",
      typeName: "养殖场",
      intor: "西北一队养殖场",
      environmentName: "绿洲",
      managerName: "陈博倩",
      managerTel: "18532746628"
    },
    {
      latitude: "104.684298",
      longitude: "33.760913",
      typeName: "养殖场",
      intor: "西北一队养殖场",
      environmentName: "绿洲",
      managerName: "陈博倩",
      managerTel: "18532746628"
    },
    {
      latitude: "103.25749",
      longitude: "29.760913",
      typeName: "养殖场",
      intor: "西北一队养殖场",
      environmentName: "绿洲",
      managerName: "陈博倩",
      managerTel: "18532746628"
    },
    {
      latitude: "103.888888",
      longitude: "30.452874",
      typeName: "养殖场",
      intor: "西北一队养殖场",
      environmentName: "绿洲",
      managerName: "陈博倩",
      managerTel: "18532746628"
    }
  ],
  // 下拉框类型数组
  TypeList: [],
  // 下拉框环境类型数组
  environment: [],

  // 后台基础信息-所有信息列表
  AllInfo: [],
  // 后台基础信息-详情单条数据
  currentInfo: {},
  // 后台-营房操作-所有列表信息
  barracksInfo: [],
  // 后台-营房操作-获取单条数据
  currentBarracksInfo: [],
  // 后台-酒店操作-所有列表信息
  hotelInfo: [],
  // 后台-酒店操作-所有列表信息-详情
  currentHotelInfo: [],
  // 后台-靶场操作-所有列表信息
  rangesInfo: [],
  // 后台-靶场操作-获取单条数据
  currentRangesInfo: [],
  // 后台-仓储操作-所有列表信息
  storangeInfo: [],
  // 后台-仓储操作-获取单条数据
  currentStorageInfo: [],
  // 后台-养殖场操作-所有列表信息
  farmInfo: [],
  // 后台-养殖场操作-获取单条数据
  currentFarmInfo: [],
  // 后台-历史沿革-所有列表信息
  historyInfo: [],

  // 后台-历史沿革-获取单条数据
  currentHistoryInfo: [],
  // 后台-楼栋信息-所有列表信息
  floorInfo: [],
  // 后台-楼栋信息-获取单条数据
  currentFloorInfo: [],
  // 后台-设备信息-所有列表信息\
  facilityInfo: [],
  // 后台-设备信息-获取单条数据
  currentFacilityInfo: [],
  // 后台-遗留问题 -所有信息列表
  leftProblem: [],

  // 后台-遗留问题-获取单条数据
  currentLeftProblemInfo: [],
  // 后台-电梯信息-所有信息列表
  elevatorInfo: [],
  // 后台-电梯信息-获取单条数据
  currentElevatorInfo: [],
  // 后台-工程信息-所有列表信息
  projectInfo: [],
  // 后台-工程信息-获取单条数据
  currentProjectInfo: [],

  // 后台-工程信息-搜索
  searchInfo: [],
  // 上传图片
  uploadIng: [],
  //字典类型查询数组
  DictionaryList: [],
  // 字典长度
  DictionaryItemLen: 0,
  //用户数组
  userList: [],

  // 删除
  //基础信息
  deleteInfo: {},
  //营房操作
  deleteBarracksInfo: {},
  // 酒店操作
  deleteHotelInfo: {},
  // 靶场操作
  deleteRangeInfo: {},
  // 仓储操作
  deleteStorageInfo: {},
  // 养殖场操作
  deleteFarmInfo: {},
  // 历史沿革
  deleteHostoryInfo: {},
  // 楼栋信息
  deleteFloorInfo: {},
  // 设备信息
  deleteFacilityInfo: {},
  // 遗留问题
  deleteLeftProblemInfo: {},
  // 电梯信息
  deleteElevatorInfo: {},
  //工程信息
  deleteProjectInfo: {},

  // 新增
  // 基础信息
  // 营房操作
  // 酒店操作
  // 靶场操作
  // 仓储操作
  // 养殖场操作
  // 历史沿革
  // 楼栋信息
  // 设备信息
  // 遗留问题
  // 电梯信息
  // 工程信息

  // 基础信息
  increatInfo: {},
  // 营房操作
  increatBarrackInfo: {},
  // 酒店操作
  increatHotelInfo: {},
  // 靶场操作
  increatRangeInfo: {},
  // 仓储操作
  increatStorageInfo: {},
  // 养殖场操作
  increatFarmInfo: {},
  // 历史沿革
  increatHistoryInfo: {},
  // 楼栋信息
  increateFloorInfo: {},
  // 设备信息
  increateFacilityInfo: {},
  // 遗留问题
  increatLeftProblemInfo: {},
  // 电梯信息
  increatElevatorInfo: {},
  // 工程信息
  increatProjectInfo: {},

  // 编辑
  // 基础信息
  editInfo: {},
  // 营房操作
  editBarracksInfo: {},
  // 酒店操作
  editHotelInfo: {},
  // 靶场操作
  editRangeInfo: {},
  // 仓储操作
  editStorangeInfo: {},
  // 养殖场操作
  editFarmInfo: {},
  // 历史沿革
  editHistoryInfo: {},
  // 楼栋信息
  editFloorInfo: {},
  // 设备信息
  editFacilityInfo: {},
  // 遗留问题
  editLeftProblemInfo: {},
  // 电梯信息
  editElevatorInfo: {},
  // 工程信息
  editProjectInfo: {}
};
export default new Vuex.Store({
  state,
  // 定义方法  不能有异步操作
  mutations,
  // 异步操作
  actions,
  // 类似计算属性
  getters,
  modules: {
    menusModule
  }
});
